import com.xe.core.XEResource
def out =   { resp.getWriter().write(it)}
def tag =  { out("<"+it + "/>")}
tag 'br'
String path = req.getParameter('path')
String source = req.getParameter('source')

out path
tag 'br'
out source
XEResource r = new XEResource(path,"FILE") 
r.setSource(source)
xeRMan.save(r);